//-----------------------------------------------------------------------
// <copyright file="a_StatsByDateService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_StatsByDateService
    {
        #region a_StatsByDate

        public static void Createa_StatsByDate(a_StatsByDate a_StatsByDate)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                a_StatsByDateDAO.Createa_StatsByDate(a_StatsByDate);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_StatsByDate(a_StatsByDate a_StatsByDate)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                a_StatsByDateDAO.Updatea_StatsByDate(a_StatsByDate);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_StatsByDate(int id)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                a_StatsByDateDAO.Deletea_StatsByDate(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_StatsByDate Geta_StatsByDate(int id)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                return a_StatsByDateDAO.Geta_StatsByDate(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_StatsByDateCollection Geta_StatsByDateList(a_StatsByDateColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                return a_StatsByDateDAO.Geta_StatsByDateList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_StatsByDateCollection Geta_StatsByDateList(a_StatsByDateColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_StatsByDateDAO a_StatsByDateDAO = new a_StatsByDateDAO();
                return a_StatsByDateDAO.Geta_StatsByDateList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}